<template>
	<view class="search-box" :style="{paddingTop:toppad+'px'}">
		<view class="neibu-box">
			<text class="iconfont iconfanhui1" @click="backgo()"></text>
			<slot></slot>
		</view>
	</view>
</template>
<script>
export default {
	name:"searchBox",
	props:["toppad"],
	methods:{
		backgo(){
			uni.navigateBack({
				delta: 1
			});
		}
	}
}
</script>
<style lang="scss" scoped>
	@import "../style/search_bar.scss";
</style>
